from django.contrib import admin
from disk import models


# Register your models here.


@admin.register(models.Users)
class UserAdmin(admin.ModelAdmin):
    list_display = ['id', 'user_name', 'password', 'add_time']
    search_fields = ['user_name']


@admin.register(models.Dirs)
class DirsAdmin(admin.ModelAdmin):
    list_display = ['id', 'user_name', 'dir', 'add_time']
    search_fields = ['user_name']
